package us.icitap.cm.ui.custom;

import java.util.Date;
import java.util.Locale;

import us.icitap.cm.ui.shared.GeneralVars;
import us.icitap.utils.FormatingUtils;

import com.vaadin.data.Property;
import com.vaadin.shared.ui.datefield.Resolution;
import com.vaadin.ui.DateField;

public class CustDateField  extends DateField{

	private void _init(){
		this.setWidth("150px");
		this.setLocale(new Locale("sq", "AL"));
		this.setDateFormat(FormatingUtils.SHORT_DATE_FORMAT);
		this.addStyleName("cust");
	}
	
	public CustDateField() {
		super();
		this._init();
	}

	public CustDateField(Property dataSource) throws IllegalArgumentException {
		super(dataSource);
		this._init();
	}

	public CustDateField(String caption, Date value) {
		super(caption, value);
		this._init();
	}

	public CustDateField(String caption, Property dataSource) {
		super(caption, dataSource);
		this._init();
	}

	public CustDateField(String caption) {
		super(caption);
		this._init();
	}

}
